package com.xunai.saas.example.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * 工具类
 * @author Admin
 */
public class Tools {

    /***
     * 获取时间戳
     * @return
     */
    protected static long getTimestamp() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
        Date time = null;
        try {
            time = simpleDateFormat.parse("2099-01-01 00:00:00");
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return time.getTime();
    }
}
